import { Vector3 } from "@minecraft/server";
import { CubeRegion } from "@sapi-game/gameRegion/gameRegion";
import { DimensionIds } from "@sapi-game/utils/vanila-data";

export interface BlockedInCombatMap {
    name: string; //名字
    region: CubeRegion; //地图区域
    loadingPos: Vector3;
    spawnPoints: Vector3[];
}

const standardMap: BlockedInCombatMap = {
    name: "标准地图",
    region: new CubeRegion(
        DimensionIds.Overworld,
        { x: 846, y: -59, z: 958 },
        { x: 801, y: -45, z: 913 }
    ),
    loadingPos: { x: 823.39, y: -43.0, z: 935.96 },
    spawnPoints: [
        { x: 837, y: -53, z: 949 },
        { x: 837, y: -53, z: 922 },
        { x: 810, y: -53, z: 949 },
        { x: 810, y: -53, z: 922 },
    ],
};

const hugeMap: BlockedInCombatMap = {
    name: "超大地图",
    region: new CubeRegion(
        DimensionIds.Overworld,
        { x: 862, y: -59, z: 1134 },
        { x: 785, y: -41, z: 1057 }
    ),
    loadingPos: { x: 824.0, y: -39.0, z: 1096 },
    spawnPoints: [
        { x: 847, y: -50, z: 1072 },
        { x: 847, y: -50, z: 1119 },
        { x: 800, y: -50, z: 1119 },
        { x: 800, y: -50, z: 1072 },
    ],
};

export const BlockedInCombatMaps = [standardMap, hugeMap];
